﻿//using System;
//using System.Collections.Generic;
//using System.Linq;
//using System.Text;
using System.Web.Script.Serialization;

namespace Redmist.UsageMonitor.WebIO
{
    public class JsonUtility
    {
        public static T Deserialise<T>(string json)
        {
            JavaScriptSerializer serializer = new JavaScriptSerializer();
            var obj = (T)serializer.Deserialize<T>(json);
            return (T)obj;
        }
    }      
}
